<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="bjui-pageContent">
	<c:if test="${empty info.id}">
	<form action="<%=request.getContextPath()%>/t/account/insert.do" data-toggle="validate" data-reload-navtab="true">
	</c:if>
	<c:if test="${not empty info.id}">
	<form action="<%=request.getContextPath()%>/t/account/update.do" data-toggle="validate" data-reload-navtab="true">
		<input type="hidden" name="id" value="${info.id}">
	</c:if>
        <div class="pageFormContent" data-layout-h="0">
            <table class="table table-condensed table-hover" width="100%">
                <tbody>
					<tr>
						 <td colspan="2">
	                        <label class="control-label x100">账户名称：</label>
	                        <input type="text" name="accName" value="${info.accName}" size="60">
	                    </td>
		    		</tr>
		    		<tr>
						 <td colspan="2">
	                        <label class="control-label x100">账户编号：</label>
	                        <input <c:if test="${not empty info.id}">readonly="readonly"</c:if> type="text" name="accCode" value="${info.accCode}" size="60">
	                    </td>
		    		</tr>
		    		<tr>
						 <td colspan="2">
	                        <label class="control-label x100">选择角色：</label>
	                        <select name="roleCode" data-toggle="selectpicker">
	                        	<c:forEach items="${roles}" var="role">
	                        		<option value="${role.roleCode}" <c:if test="${role.roleName == roleName}">selected="selected"</c:if> >${role.roleName}</option>
	                        	</c:forEach>
							</select>
	                    </td>
		    		</tr>
                </tbody>
            </table>
        </div>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close" data-icon="close">关闭</button></li>
        <li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
    </ul>
</div>